﻿using System;
using System.Collections.Generic;
using System.Text;



namespace MINERP.MODEL.InfoConfig
{
    /// <summary>
    ///  Users 实体类
    /// </summary>

    public class UsersEntity
    {
        private DateTime    _lastLoginTime;
        private bool        _isOnline;

        public int UserID { get; set; }
        public string LoginName { get; set; }
        public string LoginPWD { get; set; }
        public string UserName{ get; set; }
        public string UserRole{ get; set; }
        public string UserGroup { set; get; }
        public DateTime LastLoginTime
        {
            set
            {
                _lastLoginTime = value;
            }
            get
            {
                if (_lastLoginTime != null)
                {
                    return _lastLoginTime;
                }
                return DateTime.MaxValue;
            }
        }
        public bool IsUseful{ get; set; }
        public bool IsLeader{ get; set; }
        public string HeadPicPath{ get; set; }
        public int MaxTaskCount{ get; set; }
        public bool IsOnline 
        {
            set
            {
                _isOnline = value;
            }
            get
            {
              return _isOnline;
            }

        }

    }
}
